package com.buddy.syn.method._05;

public class ChildService extends FatherService {

    synchronized public void operatChildMethod(){
        try {
            while (i>0){
                i--;
                System.out.println("ChildService print i= "+i);
                Thread.sleep(100);
                this.operateFatherMethod();
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
